package com.teamone.etl.exception;

/**
 * @Description 统一异常类
 * @Author WangZhuoRan
 * @Date 2021-01-14 20:56
 */
public class CustomException extends Exception {

    /**
     * 自定义错误代码异常
     * 错误代码 resultCode
     */
    private CommonCode commonCode;

    public CustomException(CommonCode commonCode){
        this.commonCode = commonCode;
    }

    public CommonCode getCommonCode(){
        return commonCode;
    }
}
